| Conditions | 2 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | export interface BoxConfig { |
||
| 14 | |||
| 15 | export function generateBoxConfigs(): BoxConfig[] { |
||
| 16 | const configs: BoxConfig[] = []; |
||
| 17 | |||
| 18 | for (let i = 0; i < 12; i++) { |
||
| 19 | const bitValue = calculateBitValue(i); |
||
| 20 | configs.push({ |
||
| 21 | index: i, |
||
| 22 | bitValue, |
||
| 23 | ariaLabel: generateBoxAriaLabel(i, bitValue), |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 27 | return configs; |
||
| 28 | } |
||
| 33 |